home *** CD-ROM | disk | FTP | other *** search
- function ConvertText(hint)
- {
- var _loc3_ = "";
- var _loc1_ = 0;
- while(_loc1_ < hint.length)
- {
- var _loc2_ = hint.substr(_loc1_,1);
- if(_loc2_ == "|")
- {
- _loc3_ += "\n";
- }
- else
- {
- _loc3_ += _loc2_;
- }
- _loc1_ = _loc1_ + 1;
- }
- return _loc3_;
- }
- function DrawArt()
- {
- var i = 1;
- while(i <= ArtPos.length)
- {
- var Name = letter + "slice" + i;
- var X = ArtPos[Number(Name.substr(6,2))].x;
- var Y = ArtPos[Number(Name.substr(6,2))].y;
- this.attachMovie(Name,Name,this.getNextHighestDepth());
- eval(Name)._x = X + 30;
- eval(Name)._y = Y + 80;
- i++;
- }
- this.attachMovie(letter + "normal","normal",this.getNextHighestDepth(),{_x:45,_y:110,_alpha:0});
- }
- function movestars()
- {
- i = 0;
- while(i < N)
- {
- eval("b" + i)._x += Math.random() * 1 - 0.5;
- eval("b" + i)._y += Math.random() * 1 - 0.5;
- i++;
- }
- updateAfterEvent();
- }
- stop();
- if(_root.SoundOn)
- {
- _root.Art_s.start();
- }
- letter = "g";
- if(_root.RoundCountry == 1)
- {
- letter = "b";
- }
- else if(_root.RoundCountry == 2)
- {
- letter = "e";
- }
- N = 50;
- ArtPos = _root.ArtPos;
- DrawArt();
- i = 0;
- while(i < N)
- {
- r = Math.random() * 30 + normal._height / 2 - 20;
- w = Math.random() * 3.141592653589793 * 2;
- x = r * Math.cos(w) + 45 + normal._width / 2;
- y = r * Math.sin(w) + 110 + normal._height / 2;
- this.attachMovie("movingstar","b" + i,this.getNextHighestDepth(),{_x:x,_y:y,_alpha:100});
- eval("b" + i).gotoAndPlay(Math.round(Math.random() * 40 + 1));
- i++;
- }
- _root.TextShow(txtt,_root.countries[_root.RoundCountry],"t",0,0,0);
- _root.TextShow(txt,_root.textcontinue,"b",0,0,1);
- format = new TextFormat();
- format.font = "Arial";
- format.size = "16";
- format.bold = true;
- format.color = 12303155;
- this.createEmptyMovieClip("H1",this.getNextHighestDepth());
- H1._x = 200;
- H1._y = 150;
- _root.TextShow(H1,_root.artdescription[_root.RoundCountry],"b",-2,20,0);
- clearInterval(ms);
- clearInterval(ap);
- clearInterval(dp);
- clearInterval(aap);
- clearInterval(aaap);
- ap = setInterval(function()
- {
- normal._alpha = 100;
- dp = setInterval(function()
- {
- clearInterval(dp);
- normal._alpha = 0;
- }
- ,500);
- }
- ,1000);
- aap = setInterval(function()
- {
- clearInterval(ap);
- clearInterval(aap);
- normal._alpha = 0;
- aaap = setInterval(function()
- {
- normal._alpha += 1;
- i = 0;
- while(i < N)
- {
- eval("b" + i)._alpha -= 1;
- i++;
- }
- if(normal._alpha >= 100)
- {
- clearInterval(aaap);
- }
- }
- ,0);
- }
- ,5000);
-